<?php

namespace app\admin\controller;

use think\Controller;
use think\Request;
use think\Session;
use vquery;
use app\model\zhanghao as zh;

class Lang extends Check {

    public function index() {
        //return 2;
        switch ($_GET['lang']) {
            case 'cn':
                    cookie('think_var', 'zh-cn');
                break;
            case 'en':
                cookie('think_var', 'en-us');
                break;
        }
    }

}
